﻿@model SLSYJ.Controllers.DTOs.CategoryDTO
@{
    this.Layout = null;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Common.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Categories"))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.ID)
    <article id="article_Edit">              
        <div class="articleBody clear">    
            <fieldset>
                <legend>Categoria</legend>
                <table style="width: 100%;border:0;">
                    <tr>
                        <td>
                            <div class="editor-label">
                                @Html.LabelFor(model => model.Name)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.Name)
                                @Html.ValidationMessageFor(model => model.Name)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="editor-label">
                                @Html.LabelFor(model => model.GrossSalary)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.TextBox("GrossSalary", Model.GrossSalary, new { @class = "money"})
                                @Html.ValidationMessageFor(model => model.GrossSalary)
                            </div>
                        </td>
                    </tr>
                </table>
                <input type="submit" value="Guardar" /> | <a id='close' href='' class='ocultar'>Cerrar</a>
            </fieldset>
        </div>
    </article>
}
